package com.xxg.fileshand.net

/**
 * 
 * 接口交互正常 返回自定义异常
 */
class NetWorkException : Exception {
    var code: Int
    /*无参构造函数*/
    constructor(code: Int = 0) : super() {
        this.code = code
    }

    //用详细信息指定一个异常
    constructor(message: String?, code: Int = 0) : super(message) {
        this.code = code
    }

    //用指定的详细信息和原因构造一个新的异常
    constructor(message: String?, cause: Throwable?, code: Int = 0) : super(message, cause) {
        this.code = code
    }

    //用指定原因构造一个新的异常
    constructor(cause: Throwable?, code: Int = 0) : super(cause) {
        this.code = code
    }
}